<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title><s:if test="#reviewRecord == null">新增</s:if><s:else>编辑</s:else>评审记录</title>
<link href="<%= request.getContextPath() %>/css/main.css" media="screen" rel="stylesheet" type="text/css" />
<link href="<%= request.getContextPath() %>/css/simple.css" media="screen" rel="stylesheet" type="text/css" />
<style type="text/css">
div.page {
	text-align: center;
}
table.editor-layout {
	width: 70%;
	border: 1px solid #CCCCCC;
} 
table.editor-layout td {
	vertical-align: top;
} 

table.editor-layout input, textarea {
	width: 90%;
}
table.editor-layout input.small-number {
	width: 4em;
}
</style>
</head>
<body>
	<div id="page">
		<input type="hidden" name="reviewRecord.id">
			<table class="editor-layout">
				<s:if test="reviewRecord.id != null">
					<tr><td width="100px">编号</td><td><s:property value="reviewRecord.id"/></td></tr>
				</s:if>
				<tr><td width="100px">文件/类</td><td><a href="<%= request.getContextPath() %>/reviewrecord/file/<s:property value="reviewRecord.file"/>/list.action"><s:property value="reviewRecord.file"/></a></td></tr>
				<tr><td width="100px">修订</td><td><a href="<%= request.getContextPath() %>/reviewrecord/file/<s:property value="reviewRecord.file"/>/<s:property value="reviewRecord.revision"/>/list.action"><s:property value="reviewRecord.revision"/></a></td></tr>
				<tr><td width="100px">行号</td><td><s:property value="reviewRecord.lineFrom"/><s:if test="reviewRecord.lineTo != null">-<s:property value="reviewRecord.lineTo" /></s:if></td></tr>
				<tr>
					<td width="100px">标签</td>
					<td>
						<s:iterator value="reviewRecord.tagList" status="status">
						<a href="<%= request.getContextPath() %>/reviewrecord/tag/<s:property value="toString()"/>/list.action"><s:property value="toString()"/></a>
						</s:iterator>
					</td>
				</tr>
				<tr><td width="100px">注释</td><td><s:property value="reviewRecord.comment"/></td></tr>
				<tr><td width="100px" colspan="2">by <s:property value="reviewRecord.reviewer.name"/> on <s:date name="reviewRecord.date" format="yyyy-mm-dd"/> </td></tr>
			</table>
			<a href="<%= request.getContextPath() %>/reviewrecord/<s:property value="reviewRecord.id"/>/modify.action">编辑</a> <a href="<s:url namespace="/reviewrecord" action="create"/>">新建</a> <a href="<s:url namespace="/reviewrecord" action="list"/>">返回列表</a>
	</div>
</body>
</html>